package com.ruoyi.media.forestApi;


import com.dtflys.forest.annotation.*;
import com.dtflys.forest.callback.OnLoadCookie;

import java.util.Map;

public interface ChannelsMail {


    /**
     * 获取列表商品数据
     * @param token
     * @return
     */
    @Get(url = "https://channels.weixin.qq.com/shop-faas/mmchannelstradeleague/" +
        "plan/getItemList?token=${token}&" +
        "lang=zh_CN&offset=0&size=10000&list_type=1&need_total=1",
    headers = {
        "Sec-Ch-Ua : Google Chrome;v=111, Not(A:Brand;v=8, Chromium;v=111",
        "Accept: application/json, text/plain, */*",
        "Sec-Ch-Ua-Mobile: ?0",
        "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36",
        "Sec-Ch-Ua-Platform: Windows",
        "Sec-Fetch-Site: same-origin",
        "Sec-Fetch-Mode: cors",
        "Sec-Fetch-Dest: empty",
        "Referer: https://channels.weixin.qq.com/shop/shopleague/home",
        "Accept-Encoding: gzip, deflate",
        "Accept-Language: zh-CN,zh;q=0.9",
        "If-None-Match: W/7d8-9GEiSt4Z21o8ttMLaJgn02meH/Q",
        "Connection: close",
        "Accept: application/json, text/plain, */*"
    })
    String getItemList(@Var("token")String token,OnLoadCookie onLoadCookie);


    /**
     * 视频号小店批量开通普通推广
     * @param token
     * @return
     */
    @Post(url = "https://channels.weixin.qq.com/shop-faas/mmchannelstradeleague/plan/batchAddItem?token=${token}&lang=zh_CN",
        headers = {
            "Content-Type: application/json",
            "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36",
            "Connection: keep-alive"
        })
    String batchAddItem(@Var("token")String token,  @JSONBody String params,OnLoadCookie onLoadCookie);


    /**
     * 视频号小店开通定向推广和专属推广  （2、定向推广  3、专属推广）
     * @return
     */
    @Post(url = "https://channels.weixin.qq.com/shop-faas/mmchannelstradeleague/plan/batchAddExclusiveInfo?token=${token}&lang=zh_CN",
        headers = {
            "Content-Type: application/json",
            "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36",
            "Connection: keep-alive"
        })
    String getBatchAddExclusiveInfo(@Var("token")String token, @JSONBody Map<String,Object> params, OnLoadCookie onLoadCookie);


}
